package com.example.fruitdemo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.fruitdemo.pojo.Good;
import com.example.fruitdemo.ruslet.R;

import java.util.List;

public interface GoodService extends IService<Good> {

    R<Page> fruitpage(int page,int pageSize,int categoryid,int orderby);
    public R<Page> getbyname(String searchname,int page,int order);
    //查询新品
    R<List<Good>> getnewgoods();

    //最近浏览
    R<String> presentlook(String authorization,String goodid);
    //获取最近浏览记录
    R<Page> getPresent(String authorization);
}
